<?php
	if (empty($_POST['filename']))
	{
		echo false;
	}
	else if (file_exists($_SERVER['DOCUMENT_ROOT'].$_POST['filename']))
	{
		echo file_put_contents($_SERVER['DOCUMENT_ROOT'].$_POST['filename'], $_POST['contents']);
	}
	else 
	{
		echo false;
	}
?>